<?php if(isset($this->program)):?>
<tr id="p<?php echo $this->bid . '-' . $this->Id_oboru; ?>">
	<td>
		<?php
		echo $this->program->getObor();
		?>
	</td>
	<td class="center">
					<a class="actionIcon deleteAction" href="#" onClick="javascript:$.post(
						'<?= $this->url(array(
							'controller' => 'block',
							'action' => 'remove-program',
							'format' => 'html' 
						)
					) ?>',
					{
						bid: <?php echo $this->bid; ?>,
						Id_oboru: <?php echo $this->Id_oboru; ?>,						
					},
					function(result){						
						$('.message').html(result);						
						$('table.groupsTable tr#p<?php echo  $this->bid . '-' . $this->Id_oboru; ?>').remove();
					});">Odstrániť</a>	
	</td>
</tr>
<?php endif;?>